import request from '@/utils/request';

/**
 * 查询用户的游戏记录
 * @param id 用户id
 * @param page 
 * @param size 
 * @returns 
 */
export function listGameInfo(userName: string | number, page: number, size: number) {
  return request({
    url: '/game/list/' + userName,
    method: 'get',
    params: {
      page,
      size
    }
  });
}